{{~ it['list']:row:r_index}}
<tr ondblclick="QList.editRow({{=row[it.table_config.pk||'id']}},{{=r_index}})">
	{{ for(var field in it['fields']){ }}
	<td class="qlist-td field-{{=field}}">
		<span class="qlist-field-name">{{=it['fields'][field].title}}</span> <span class="qlist-field-value">
			{{? it['fields'][field].type=='image' || it['fields'][field].type=='file' }}
				<span class="cover"><img class="shadow" src="{{=row[field]||''}}"></span>
			{{?? it['fields'][field].type=='datetime' }}
	         {{=QList.formatDate(row[field])}} 
			{{?? it['fields'][field].type=='switch' }}
				<label class="weui-switch-cp">
					<input class="weui-switch-cp__input" type="checkbox" {{? row[field] }}checked{{?}} 
						onchange="QList.toggleSwitch(this, '{{=it.table}}', '{{=row[it.table_config.pk||'id']}}', '{{=field}}')">
					<div class="weui-switch-cp__box"></div>
				</label>
			{{?? it['fields'][field].type=='radio' && it['fields'][field].option }}
				{{=it['fields'][field].option[row[field]] || row[field] || '~'}}
			{{??}}
	        {{=row[field]||'~'}}
			{{?}}
		</span>
	</td>
	{{ } }}
	<td class="qlist-actions">
		<a href="#" class="qlist-btn small bg-red white" onclick="QList.deleteRow({{=row[it.table_config.pk||'id']}},{{=r_index}})">删除</a>
	</td>
</tr>
{{~}}